import type { FormRules } from 'naive-ui'

export const createRules = (): FormRules => {
  return {
    roleName: [
      {
        required: true,
        message: '请输入角色名称',
        trigger: 'blur',
      },
    ],
    roleCode: [
      {
        required: true,
        message: '请输入角色Code',
        trigger: 'blur',
      },
    ],
  }
}
